# 默认实行第一条
## all@默认命令,可省略该参数,指向run命令
all: help	


## push@推送到远程仓库
.PHONY:push
push:
	@echo "\033[0;32mDeploying updates to GitHub...\033[0m";
	@git add . ;
	@msg="Rebuiled at $$(date)";git commit -m "$$msg";
	@git push origin master
	@echo "源码推送成功"


## run@运行
.PHONY:run
run:
	@dotnet run --project ./Tutor.Hello


## save@提交到本地仓库
.PHONY:save
save:
	git add .
	msg="rebuilding site $(date)"
	if [ $# -eq 1 ]; then \
		msg="$1" ; \
	fi
	git commit -m "$msg"
	echo "saved"


## help@查看make帮助
.PHONY:help
help:Makefile
	@echo "Usage:\n  make [command]"
	@echo
	@echo "Available Commands:"
	@sed -n "s/^##//p" $< | column -t -s '@' #|grep --color=auto -ie "\s....\s"